Cleanup the Gemfile, added a potential warning

Chris Eidhof 10 years ago
parent
commit
5def3cfcd8
2 changed files with 3 additions and 1 deletions
  1. 1 1
      Gemfile
  2. 2 0
      app/models/agents/pdf_info_agent.rb

+ 1 - 1
Gemfile

@@ -13,6 +13,7 @@ gem 'hipchat', '~> 1.2.0'         # HipchatAgent
13 13
 gem 'xmpp4r',  '~> 0.5.6'         # JabberAgent
14 14
 gem 'mqtt'                        # MQTTAgent
15 15
 gem 'slack-notifier', '~> 1.0.0'  # SlackAgent
16
+gem 'hypdf', '~> 1.0.7'           # PDFInfoAgent
16 17
 
17 18
 # GoogleCalendarPublishAgent
18 19
 gem "google-api-client", require: 'google/api_client'
@@ -81,7 +82,6 @@ gem 'string-scrub'	# for ruby <2.1
81 82
 gem 'therubyracer', '~> 0.12.1'
82 83
 gem 'typhoeus', '~> 0.6.3'
83 84
 gem 'uglifier', '>= 1.3.0'
84
-gem 'hypdf', '~> 1.0.7'
85 85
 
86 86
 group :development do
87 87
   gem 'better_errors', '~> 1.1'

+ 2 - 0
app/models/agents/pdf_info_agent.rb

@@ -9,6 +9,8 @@ module Agents
9 9
     cannot_be_scheduled!
10 10
 
11 11
     description <<-MD
12
+      #{'## Include the `hypdf` gem in your `Gemfile` to use PDFInfo Agents.' if dependencies_missing?}
13
+
12 14
       In order for this agent to work, you need to have [HyPDF](https://devcenter.heroku.com/articles/hypdf) running and configured.
13 15
 
14 16
       It works by acting on events that contain a key `url` in their payload, and runs the [pdfinfo](https://devcenter.heroku.com/articles/hypdf#pdfinfo) command on them.